<?php


    function showCPanel()
    {
        //global $mosConfig_live_site, $mosConfig_absolute_path;
        //global $_DOCMAN;

        ?><script language="JavaScript" src="<?php echo JPATH_LIVE_SITE;?>/administrator/components/com_docman/includes/js/docmanjavascript.js"></script>

        <?php if(defined('_DM_J15')) {
            JToolBarHelper::title('&nbsp;', 'dm_logo');
        } else { ?>
            <table>
                <tr>
                    <th><img border="0" alt="DOCman logo" src="components/com_docman/images/dm_logo.png" /></th>
                </tr>
            </table>
        <?php }
    }?>
        <table class="adminform">
            <tr>
                <td width="55%" valign="top">
                    <div id="cpanel">
                    <?php
                        $link = "index2.php?option=com_docman&amp;section=files";
                        HTML_DMDocman::_quickiconButton( $link, 'dm_files_48.png', _DML_FILES, _DM_ICONPATH);
                        $link = "index2.php?option=com_docman&amp;section=files&amp;task=upload";
                        HTML_DMDocman::_quickiconButton( $link, 'dm_newfile_48.png', _DML_NEW_FILE, _DM_ICONPATH);

                        $link = "index2.php?option=com_docman&amp;section=documents";
                        HTML_DMDocman::_quickiconButton( $link, 'dm_documents_48.png', _DML_DOCS, _DM_ICONPATH );
                        $link = "index2.php?option=com_docman&amp;section=documents&amp;task=new";
                        HTML_DMDocman::_quickiconButton( $link, 'dm_newdocument_48.png', _DML_NEW_DOCUMENT, _DM_ICONPATH );

                        $link = "index2.php?option=com_docman&amp;section=categories";
                        HTML_DMDocman::_quickiconButton( $link, 'categories.png', _DML_CATS);
                        $link = "index2.php?option=com_docman&amp;section=groups";
                        HTML_DMDocman::_quickiconButton( $link, 'user.png', _DML_GROUPS);
                        $link = "index2.php?option=com_docman&amp;section=licenses";
                        HTML_DMDocman::_quickiconButton( $link, 'dm_licenses_48.png', _DML_LICENSES, _DM_ICONPATH );

                        $link = "index2.php?option=com_docman&amp;task=stats";
                        HTML_DMDocman::_quickiconButton( $link, 'dm_stats_48.png', _DML_STATS, _DM_ICONPATH );
                        $link = "index2.php?option=com_docman&amp;section=logs";
                        HTML_DMDocman::_quickiconButton( $link, 'dm_logs_48.png', _DML_DOWNLOAD_LOGS, _DM_ICONPATH);

                        $link = "index2.php?option=com_docman&amp;section=config";
                        HTML_DMDocman::_quickiconButton( $link, 'config.png', _DML_CONFIG);
                        $link = "index2.php?option=com_docman&amp;section=themes";
                        HTML_DMDocman::_quickiconButton( $link, 'templatemanager.png', _DML_THEMES);
                        $link = "index2.php?option=com_docman&amp;section=themes&amp;task=edit&amp;cid[0]=".$_DOCMAN->getCfg('icon_theme');
                        HTML_DMDocman::_quickiconButton( $link, 'dm_edittheme_48.png', _DML_EDIT_DEFAULT_THEME, _DM_ICONPATH);
                        $link = "index2.php?option=com_docman&amp;section=cleardata";
                        HTML_DMDocman::_quickiconButton( $link, 'dm_cleardata_48.png', _DML_CLEARDATA, _DM_ICONPATH);

                        $link = "index2.php?option=com_docman&amp;task=credits";
                        HTML_DMDocman::_quickiconButton( $link, 'credits.png', _DML_CREDITS);

                        HTML_DMDocman::_quickiconButton( _DM_HELP_URL, 'dm_help_48.png', _DML_HELP, _DM_ICONPATH, '_blank');

                    ?>
                    </div>
                </td>
                <td width="45%" valign="top">
                    <div style="width=100%;">
                        <form action="index2.php" method="post" name="adminForm">
                            <?php DOCMAN_Compat::mosLoadAdminModules('dmcpanel', 1);?>
                            <input type="hidden" name="sectionid" value="" />
                            <input type="hidden" id="cid" name="cid[]" value="" />
                            <input type="hidden" name="option" value="com_docman" />
                            <input type="hidden" name="task" value="" />
                        </form>
                    </div>
                </td>
            </tr>
        </table>